<div id="sidebar" class="sidebar responsive">

    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <button class="btn btn-success">
                <i class="ace-icon fa fa-signal"></i>
            </button>

            <button class="btn btn-info">
                <i class="ace-icon fa fa-pencil"></i>
            </button>

            <!-- #section:basics/sidebar.layout.shortcuts -->
            <button class="btn btn-warning">
                <i class="ace-icon fa fa-users"></i>
            </button>

            <button class="btn btn-danger">
                <i class="ace-icon fa fa-cogs"></i>
            </button>

            <!-- /section:basics/sidebar.layout.shortcuts -->
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>

            <span class="btn btn-info"></span>

            <span class="btn btn-warning"></span>

            <span class="btn btn-danger"></span>
        </div>
    </div>
    <!-- /.sidebar-shortcuts -->

    <ul class="nav nav-list">

        {foreach name="__MENU__" item="v"}
        <li class=""><!--open代表打开状态 active -->
        <a href="#" class="dropdown-toggle">
            <i class="menu-icon fa {$v.css}"></i>
				<span class="menu-text">
					{$v.title}
				</span>
            <b class="arrow fa fa-angle-down"></b>
        </a>

        <b class="arrow"></b>

        <ul class="submenu">
            {notempty name="v['_child']"}
				{foreach name="v['_child']" item="j"}
					{php}
						$arr=explode('/',$j['name']);
						if(!empty($j['_child'])&&$controller_name==strtolower($arr['0'])){
							static $head_nav;
							$head_nav=$j['_child'];
						}
					{/php}
					<li class="{if condition="(strtolower($controller_name) eq strtolower($arr['0']))"}active {$controller_name}{/if}">
						<a href="{:url($j['name'])}">
							<i class="menu-icon fa fa-caret-right"></i>
							{$j.title}
						</a>
						<b class="arrow"></b>
					</li>
				{/foreach}
            {/notempty}
        </ul>
        </li>
        {/foreach}

    </ul>
    <!-- /.nav-list -->

    <!-- #section:basics/sidebar.layout.minimize -->
    <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
        <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left"
           data-icon2="ace-icon fa fa-angle-double-right"></i>
    </div>

    <!-- /section:basics/sidebar.layout.minimize -->
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
		$(".{$controller_name}").parents('li').addClass('open active');
    </script>
</div>
